package com.xindz.hgq.base.options;

import android.support.annotation.NonNull;

import com.xindz.hgq.base.LazyLoadInterface;

/**
 * @name HGQBase
 * @class name：com.xindz.hgq.base
 * @describe describe
 * @anthor XINDZ
 * @time 2018/1/4 11:21
 * @change
 * @chang time
 * @class describe
 */
public class BaseFragmentOptions extends BaseOptions<BaseFragmentOptions> {


    /**
     * 是否开启懒加载
     */
    private boolean isOpenLazyLoading = false;

    /**
     * 懒加载回调接口
     */
    private LazyLoadInterface lazyLoadInterface;

    public LazyLoadInterface getLazyLoadInterface() {
        return lazyLoadInterface;
    }


    public boolean isOpenLazyLoading() {
        return isOpenLazyLoading;
    }


    /**
     * 开启公共Title
     */
    public BaseFragmentOptions openLazyLoading(@NonNull LazyLoadInterface lazyLoadInterface) {
        isOpenLazyLoading = true;
        this.lazyLoadInterface = lazyLoadInterface;
        return this;
    }


}
